<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Demo</title>
</head>
<body>
	
	<script>
	var str='border-left-color';
	function camelback(str){
		var arr=str.split("-"),newStr=arr[0];
		for(var i=1;i<arr.length;i++){
			var world=arr[i];
			//
			newStr+=world.charAt(0).toUpperCase()+world.substr(1);
			//console.log(newStr)
		}
		return newStr
	}
	var camelbackFormat=camelback("border-left-color");
	console.log(camelbackFormat)
	</script>
</body>
</html>
